package com.somnus.demo.androiddatabingdemo.listener;

import android.content.Intent;
import android.view.View;
import android.widget.Toast;

import com.somnus.demo.androiddatabingdemo.MovieActivity;

/**
 * Created by Somnus on 2017/3/13.
 *
 * @Description:
 */

public class MyHandlers {
    //参数View必须有，必须是public，参数View不能改成对应的控件，只能是View，否则编译不通过
    public void onClickFriend(View v) {
        Toast.makeText(v.getContext(), "点击了", Toast.LENGTH_SHORT).show();
        v.getContext().startActivity(new Intent(v.getContext(), MovieActivity.class));
    }



}
